import request from '@/utils/request'

// 查询结算列表
export function listClearing(query) {
  return request({
    url: '/accounting/clearing/list',
    method: 'get',
    params: query
  })
}

// 查询结算详细
export function getClearing(id) {
  return request({
    url: '/accounting/clearing/' + id,
    method: 'get'
  })
}

// 新增结算
export function addClearing(data) {
  return request({
    url: '/accounting/clearing',
    method: 'post',
    data: data
  })
}

// 修改结算
export function updateClearing(data) {
  return request({
    url: '/accounting/clearing',
    method: 'put',
    data: data
  })
}

// 删除结算
export function delClearing(id) {
  return request({
    url: '/accounting/clearing/' + id,
    method: 'delete'
  })
}
